export enum CardPlace {
    cardMountain,
    map,
    storage,
    Order,
    hand,
}

// ---------------------------------------------------------  new

export const  MAX_CARD_ID = 1000

export enum CardSuit {
    SPADE = 0,    // 黑桃
    HEART = 1,    // 红桃
    CLUB = 2,     // 梅花
    DIAMOND = 3,  // 方块
}

export enum OrderSlotStatus  {
    adLock = -1,
    empty,
    exist,
}

/**
 * 卡牌点数枚举
 */
export enum CardRank {
    ACE = 0,      // A
    TWO = 1,      // 2
    THREE = 2,    // 3
    FOUR = 3,     // 4
    FIVE = 4,     // 5
    SIX = 5,      // 6
    SEVEN = 6,    // 7
    EIGHT = 7,    // 8
    NINE = 8,     // 9
    TEN = 9,      // 10
    JACK = 10,    // J
    QUEEN = 11,   // Q
    KING = 12,    // K
}


/**
* 地图卡片配置接口
*/
export interface MapCardConfig {
    uid: number;
    layerid: number;
    index: number;
    x: number;
    y: number;
    firstopen: boolean;
    cardid: number;
    cardpoolid: string;
    ruleid: string;
    iscustom: boolean;
    rotation: number;
}

/**
 * 地图配置接口
 */
export interface MapConfig {
    uid: string;
    lv: number;
    width: number;
    height: number;
    ver: number;
    cards: { [key: string]: MapCardConfig };
    cuids: number[][];
    startuid: number;
}

export enum OrderStatus {
    NONE,
    USED,
    FINISH,
}

export enum OrderCardStatus {
    NONE,
    WAIT,
    FINISH,
}

export enum GameStatus{
    NONE,
    PRELOAD,
    PLAYING,
    PAUSE,
    FINISH,
}

export enum ClickEventType {
    NONE,
    MOUNTAIN,
    HAND,
    STORAGE,
    ORDER
}

export const SK_CS_DIAMOND = 0;
export const SK_CS_CLUB = 1;
export const SK_CS_HEART = 2;
export const SK_CS_SPADE = 3;
export const SK_CS_KING_S = 4;
export const SK_CS_KING_B = 5;
export const SK_CS_JOKER = 6;
export let SK_CARD_INDEX_KING_S: number;
export let SK_CARD_INDEX_KING_B: number;